﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="MoreKnowledge.aspx.cs" Inherits="ITSupportPlatform.MoreKnowledge" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <form id="form1" runat="server">
    <div id="cc" style="width: 100%; height: 100%; margin: 0px;">
        <table width="100%">
            <tr>
                <td align="center">
                    <div id="p1" class="easyui-panel" title="知识库列表" style="padding: 3px; background: #fafafa;
                        text-align: center; height: 450px" data-options="iconCls:'icon-save', closable:false,
                collapsible:false,minimizable:false,maximizable:false,pagination:true">
                        <div style="margin-left: 25px; margin-top: 10px;">
                            <asp:GridView ID="GVList" runat="server" AutoGenerateColumns="False" DataSourceID="ODSList"
                                ShowHeader="False" BorderStyle="None" AllowPaging="True" GridLines="None" PageSize="50">
                                <Columns>
                                    <asp:TemplateField HeaderText="标题">
                                        <ItemTemplate>
                                            <a target='_blank' href='<%# Eval("Url") %>'  style='margin: 10px;'>
                                                <%# Eval("Title") %></a>
<%--                                            <div id="Notice_body_" style="border-style: dashed; border-width: 1px;
                                                border-color: #d1d1d1; display: none; padding: 10px; margin: 10px; line-height: 25px;
                                                min-height: 100px;">
                                                <%# Eval("Body") %>--%>
                                            </div>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle Height="30px" CssClass=" datagrid-cell" />
                                <PagerTemplate>
                                    <br />
                                    <table width="500px" style=" margin-top:50px;">
                                        <tr>
                                            <td align="center" style="font-size: 15px; font-weight:bolder">
                                                <asp:LinkButton ID="lbnFirst" runat="Server" Text="首页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                                                    CommandName="Page" CommandArgument="First" Style=""></asp:LinkButton>
                                                <asp:LinkButton ID="lbnPrev" runat="server" Text="上一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != 0 %>'
                                                    CommandName="Page" CommandArgument="Prev" Style=" margin-left:20px;"></asp:LinkButton>
                                                <asp:LinkButton ID="lbnNext" runat="Server" Text="下一页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                                                    CommandName="Page" CommandArgument="Next" Style=" margin-left:20px;"></asp:LinkButton>
                                                <asp:LinkButton ID="lbnLast" runat="Server" Text="尾页" Enabled='<%# ((GridView)Container.NamingContainer).PageIndex != (((GridView)Container.NamingContainer).PageCount - 1) %>'
                                                    CommandName="Page" CommandArgument="Last" Style=" margin-left:20px;"></asp:LinkButton>
                                                <%--                                    到第<asp:TextBox runat="server" ID="inPageNum"></asp:TextBox>页
                                    <asp:Button ID="Button1" CommandName="go" runat="server" />--%>
                                            </td>
                                            <td>
                                                <div style="width: 200px; text-align: center;  color:Gray; vertical-align:bottom; ">
                                                    (<%# "当前第" + (((GridView)Container.NamingContainer).PageIndex + 1)  + "页，共" + (((GridView)Container.NamingContainer).PageCount) + "页" %>）
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                    <br />
                                </PagerTemplate>
                            </asp:GridView>
                        </div>
                        <asp:ObjectDataSource ID="ODSList" runat="server" SelectMethod="GetKnowledgeList" TypeName="ITSupportPlatform.DAL.DataFromSharePoint">
                        </asp:ObjectDataSource>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    </form>
</asp:Content>
